//客户机与服务器断开连接了

#include "../include/head.h"

int epollDelFd(int epfd, int fd)
{
    //将newFd加入epfd中
    struct epoll_event event;
    memset(&event, 0, sizeof(event));

    event.events = EPOLLIN;
    event.data.fd = fd;

    int ret = epoll_ctl(epfd, EPOLL_CTL_DEL, fd, &event);
    ERROR_CHECK(ret, -1, "epoll_ctl");
    return 0;
}

